<template>
    <div>
        我是详情页
        <!-- <button @click="$router.go(-1)">返回上一页</button>
         -->
        <button @click="$router.back()">返回上一页</button>
        <button @click="$router.push('/detail/500')">修改地址栏的参数</button>
    </div>
</template>
<script>

export default {
    name: '',
    data() {
        return {

        };
    },
    mounted() {
        // console.log('详情页', this.$router)
    },
    beforeRouteUpdate(to, from) {
        console.log('路由参数更新啦');
    }


}

</script>
<style scoped>

</style>